package com.usian.article.controller.v1;

import com.usian.apis.article.ArticleInfoControllerApi;
import com.usian.article.service.ApArticleService;
import com.usian.model.article.dtos.ArticleInfoDto;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api/v1/article")
public class ArticleInfoController implements ArticleInfoControllerApi {

    @Autowired
    private ApArticleService apArticleServiceI;

    @Override
    @PostMapping("load_article_info")
    public ResponseResult loadArticleInfo(@RequestBody ArticleInfoDto dto) {
        return apArticleServiceI.loadArticleInfo(dto);
    }
}
